package project.simpleMsg;

import org.jboss.netty.channel.Channel;

public class SimpleMsgTest {

	public static void main(String args[]) throws InterruptedException {
		SimpleMsgServer server = new SimpleMsgServer(5001);
		server.bootstrap();

		Thread.sleep(1000L);
		SimpleMsgClient client = new SimpleMsgClient("172.16.101.42", 5001);
		Channel ch = client.bootstrap();
		
		DistCommunication dc = new DistCommunication("Test$static", 1, 0,
				"102", "justTest", ListUtil.generateDcArgs(1, "haha"));
		ch.write(dc.packup(false));
		


//		ch.write("Hello");
	}
}
